<?php

namespace Api\Event; 

use Vendor\OSS;

class OssEvent extends BaseEvent 
{

	public function delVideo($file)
	{ 
		$object = strstr($file, 'video');
		if(!$object){
			return false;
		}
		$client = new OSS\OssClient(C('UPLOAD_OSS_CONFIG.access_id'),C('UPLOAD_OSS_CONFIG.access_key'), 'oss-cn-qingdao.aliyuncs.com');
		$res = $client->deleteObject('imbatv', $object);
	}


}